import axios from '@/libs/api.request'
import { getToken } from '@/libs/util'

/**
 * 由角色查权限
 * @param param
 * @returns {*}
 */
export const queryByRole = (param) => {
  return axios.request({
    url: '/admin/role/permission/query/list/where',
    method: 'post',
    dataType: 'json',
    headers: {
      'Content-Type': 'application/json; charset=UTF-8',
      'token': getToken()
    },
    data: param
  })
}
